// 知识分享
import http from '../utils/http.js';

/**
 * 知识分享分页查询
*/
export const knowledgeShare = (data)=>{
    return http.get('/auth/sharing/page',data)
}

/**
 * 根据id获取知识分享详情
*/
export const knowledgeDetails = (id)=>{
    return http.get(`/auth/sharing/detail/${id}`)
}

/**
 * 用户操作,重复操作取反
*/
export const knowledgeOperation = (data)=>{
    return http.post('/auth/sharing/status',data)
}

/**
 * 用户发布评论
*/
export const knowledgeComment = (data)=>{
    return http.post('/auth/sharing/comment',data)
}

/**
 * 用户查询评论
*/
export const userReview = (data)=>{
    return http.get('/auth/sharing/comment/page',data)
}

/**
 * 知识轮播图
*/
export const knowledgeBanner = ()=>{
    return http.get('/auth/sharing/banner')
}